package cn.wolfcode.luowowo.ticket.service;

import cn.wolfcode.luowowo.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import cn.wolfcode.luowowo.ticket.domain.Payment;

import java.util.Date;
import java.util.List;

public interface IPaymentService {
    void deleteByPrimaryKey(Long id);

    void insert(Payment payment);

    Payment selectByPrimaryKey(Long id);

    List<Payment> selectAll();

    void updateByPrimaryKey(Payment payment);


    void insetSubmitCreateOrder(Long ticketId, int num, UserInfo user,String msgCode ,Date showVisitTimeInput)throws LogicException;

    /**
     * 根据用户id查询门票订单
     * @param uid
     * @return
     */
    List<Payment> getByUserId(Long uid);
}
